package com.linjuke.mayouting.web.modules.screen.user;

import com.linjuke.mayouting.biz.ao.UserAO;
import com.linjuke.mayouting.web.common.BaseScreen;
import com.zjuh.splist.web.RunData;
import com.zjuh.splist.web.TemplateContext;
import com.zjuh.sweet.result.Result;

public class Detail extends BaseScreen {

	private UserAO userAO;
	
	@Override
	public void execute(RunData rundata, TemplateContext templateContext) {
		int userId = rundata.getQueryString().getInt("userId");
		Result result = userAO.viewUserDetail(userId);
		this.handleResult(result, rundata, templateContext);
	}

	public void setUserAO(UserAO userAO) {
		this.userAO = userAO;
	}

}
